/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    device_i2c.h
 *  @brief   Designware i2c device header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 *  @author  liuchao
 ****************************************************************/

#ifndef __DEVICE_I2C_H__
#define __DEVICE_I2C_H__

#include "dev_i2c.h"

/**
 * \name	DesignWare I2C Object Number
 * @{
 */
#define DW_I2C_NUM              (2)     /*!< DesignWare I2C valid number */
/** @} end of name */

/**
 * \name	Designware I2C Object ID Macros
 * @{
 */
#define DW_I2C_0_ID             0       /*!< i2c 0 id macro */
#define DW_I2C_1_ID             1       /*!< i2c 1 id macro */

/** @} end of name */

/**
 * \name	Designware I2C Object Control Macros
 * @{
 */
#define USE_DW_I2C_0            1       /*!< enable use designware i2c 0 */
#define USE_DW_I2C_1            1       /*!< enable use designware i2c 1 */

#ifdef __cplusplus
extern "C" {
#endif


#ifdef __cplusplus
}
#endif

#endif /* __DEVICE_I2C_H__ */
